let fs = require('fs');
let buf = '';

process.stdin.on('readable', function() {
    let chunk = process.stdin.read();
    if (chunk) buf += chunk.toString();
});

let sort = (a, l, r) => {
    for (let i = r; i > l; --i) {
        for (let j = l; j < i; j++) {
            if (a[i] < a[j]) [a[i], a[j]] = [a[j], a[i]];
        }
    }
}

process.stdin.on('end', function() {
    let input = buf.split("\n");
    let [n, l, r] = input[0].split(" ").map((x)=>{return parseInt(x);});
    let a = input[1].split(" ").map((x)=>{return parseInt(x);});
    
    sort(a, l, r);
    console.log(a.join(" "));
});